acm: Return a valid buffer
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 10:31:16 +0000 (10:31 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 10:31:16 +0000 (10:31 +0000)
This patch reverts a previous patch trying to fix a memory, even
though I don't think there was any. Now return a valid buffer. All
functions calling this function do free the buffer.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/lowlevel/acm/acm.c

index d426420d703fbd1c468595070542428e6ec03147..662c7f72d4407282bea04bea2c0c7910cd43432e 100644 (file)
@@ -68,8 +68,6 @@ static void *__getssid(int domid, uint32_t *buflen)
         goto out2;
     } else {
         *buflen = SSID_BUFFER_SIZE;
-        free(buf);
-        buf = NULL;
         goto out2;
     }
  out2: